import { Upload } from "@/api/interface/index";
import http from "@/api";

/**
 * @name 文件上传模块
 */
// 图片上传
export const uploadImgApi = (params: FormData) => {
  return http.post<Upload.ResFileInfo>("/img_upload", params, { noLoading: true });
};

// 视频上传
export const uploadVideoApi = (params: FormData) => {
  return http.post<Upload.ResFileInfo>("/video_upload", params, { noLoading: true });
};
